
function getSelectedClients(){
	var x = document.getElementById("task_clients")
	var options = x.options;
	var selected = document.getElementById("task_selected_clients");
	var i = 0;
	for (i = 0; i < options.length; i++) {
		if (options[i].selected) {
			o = new Option(options[i].text,options[i].value)
			o.selected = true;
			selected.add(o ,null);
		}
	}
}

function selectAllClients() {
	var x = document.getElementById("task_clients");
	var options = x.options;
	for (i = 0; i < options.length; i++) {
		options[i].selected = true;
	}
}
